$(function() {
	$(".choose-block").click(function() {
		$(this).siblings().removeClass("active");
		$(this).addClass("active");
	});
	v_list = new Vue({
		el: '#bianmin',
		data: {

		},
		methods: {

			//常用
			toIndex: function() {
				window.location = "../gover/index.html"
			},

			exitAttendTo: function() {
				$.openDialog({
					'title': '',
					"showClose": false,
					'width': 824,
					'height': 460,
					'url': '../gover/selfHelpExitChoose.html'
				});
			},
			toZhengwu_gr: function() {
				var type = 'gr'
				window.location = "../gover/readIdentityCard.html?type=" + type;

			},
			toZhengwu_qy: function() {
				var type = 'qy'
				window.location = "../gover/readIdentityCard.html?type=" + type;

			},
			toZhengwu_dept: function() {
				var type = 'dept'
				window.location = "../gover/readIdentityCard.html?type=" + type;

			},
			toScanner: function() {
				window.location = "../gover/scannerIndex.html";
			},
			exitProcess: function(op, type) {
				if(op == 'index') {
					$.showConfirm({
						'title': '',
						'content': '是否退出办理？',
						"showClose": false,
						"sureLabel": "取消",
						"cancelLabel": "退出办理",
						'cancel': this.toIndex
					});
				} else if(op == 'scanner') {
					$.showConfirm({
						'title': '',
						'content': '是否退出办理？',
						"showClose": false,
						"sureLabel": "取消",
						"cancelLabel": "退出办理",
						'cancel': this.toScanner
					});
				} else if(op == 'zhengwu') {
					if(type == 'gr') {
						$.showConfirm({
							'title': '',
							'content': '是否退出办理？',
							"showClose": false,
							"sureLabel": "取消",
							"cancelLabel": "退出办理",
							'cancel': this.toZhengwu_gr,
							key: "type"
						});
					} else if(type == 'qy') {
						$.showConfirm({
							'title': '',
							'content': '是否退出办理？',
							"showClose": false,
							"sureLabel": "取消",
							"cancelLabel": "退出办理",
							'cancel': this.toZhengwu_qy,
							key: "type"
						});
					} else if(type == 'dept') {
						$.showConfirm({
							'title': '',
							'content': '是否退出办理？',
							"showClose": false,
							"sureLabel": "取消",
							"cancelLabel": "退出办理",
							'cancel': this.toZhengwu_dept,
							key: "type"
						});
					}
				}
			},
			//常用结束
			return: function() {
				history.go(-1)
			},
			pay: function(type) {
				if(type == 'phone') {
					window.location = 'convenient-phonePay.html';
				} else {
					window.location = 'convenient-flowPay.html';
				}
			}
		},
		ready: function() {
			//初始化获得总页面数和列表数据
			$("#left").load("../../page/common/left.html")
		}
	});
});